home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / util / cli / Randomizer.readme < prev    next >
Text File  |  1997-09-05  |  2KB  |  62 lines

  1. Short:    Generate random numbers for scripts
  2. Author:   T.Heinrich@t-online.de (Thomas Heinrich)
  3. Uploader: T.Heinrich@t-online.de (Thomas Heinrich)
  4. Version:  1.1
  5. Type:     util/cli
  6. Requires: OS2.04+, MC68000+
  7. Replaces: Randomizer#?
  8.  
  9. While I am browsing through the web, I am collecting looots of
  10. photos of phantastic women. So I really could not decide which
  11. one to use as the workbench backdrop. Using WBPattern to create
  12. multiple preferences files was easy, but how get them changed
  13. after every reboot ?
  14.  
  15. So I renamed all the prefs as Backdrop.xx, where xx is a number
  16. from 0 to 197 ;^). But how do I generate a random number in a shell ?
  17. Finally I quickly wrote a program, which used the system seconds,
  18. and masked out the lower few bits, being able to use first 16 then
  19. 32 backdrops.
  20.  
  21. I was not to satified with that, as it only produced fixed steps
  22. to use as numbers (16, 32 the next would have been 64). I spent
  23. half an afternoon, then, to produce this program here: Randomizer !
  24.  
  25. What it does:
  26. -------------
  27. It also reads the seconds from the timer of your Amiga and then
  28. produces a CONFIGURABLE number of random numbers. For script
  29. convenience, it stores the number in a local shell variable named
  30. "RANDOM". So you can access it e.g. by typing
  31.  
  32. WBPattern Backdrop.$RANDOM USE
  33.  
  34. This loads a random backdrop picture, given you prepared the prefs
  35. in the first place.
  36.  
  37. What YOU should do:
  38. -------------------
  39. READ THE DOCS BEFORE USING THE PROGRAM !
  40.  
  41. To be honest, there are no docs... Search for the file "ReadMeFirst"
  42. in this distribution, to figure out how to make Randomizer work.
  43.  
  44. One more, at last: It is FREEWARE ! And it comes with the main part
  45. of the C source !!!
  46.  
  47. Have fun,
  48.     Thomas "Hoin" Heinrich.
  49.  
  50.  
  51. ============================= Archive contents =============================
  52.  
  53. Original  Packed Ratio    Date     Time    Name
  54. -------- ------- ----- --------- --------  -------------
  55.     1233     594 51.8% 04-Jul-97 22:21:04  Random.info
  56.     1736    1241 28.5% 16-Jul-97 21:05:18 +Randomizer
  57.     2071     968 53.2% 16-Jul-97 21:02:54 +Randomizer.c
  58.     1718     967 43.7% 16-Jul-97 20:32:52 +Randomizer.readme
  59.     4066    1979 51.3% 16-Jul-97 20:51:04 +ReadMeFirst
  60. -------- ------- ----- --------- --------
  61.    10824    5749 46.8% 20-Jul-97 22:28:18   5 files
  62.